<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<%@page import="configuracion.VariablesGlobales"%><html>
<head>
</head>
<jsp:useBean id="usuario" class="dto.UsuarioDTO" scope="session"/>
<jsp:useBean id="error" class="java.lang.String" scope="request"/>
<body>
<form action="MenuServlet" method="post">
	<table width="100%" border="0">
	<%
		if (usuario.getNombreUsuario()!=null){%>
			<tr>
				<td align="left">
					<font color="navy" size="1">
						Bienvenido <%=usuario.getNombreUsuario() %>				
					</font>
				</td>
				<td align="right">
					<button type="submit" name="dir" id="dir" value="desconectar" style="bottom: 5px; font-size: x-small">Desconectar</button>
				</td>
			</tr>
	<%	}else{%>
			<tr>
				<td nowrap align="right">
					<font size="1">
						Usuario:
					</font>
				</td>
				<td>
					<font size="1">
						<input type="text" name="user" id="user" style="height: 15px; width: 55px; font-size: 10px;"/>
					</font>
				</td>
				<td nowrap" align="right">
					<font size="1">
						Contrase&ntilde;a:
					</font>
				</td>
				<td>
					<font size="1">
						<input type="password" name="pass" id="pass"  style="height: 15px; width: 55px; font-size: 10px;"/>
					</font>
						
				</td>
				<td align="left">
					<button title="Conectar" type="submit" name="dir" id="dir" value="conectar" style="background-color: transparent; border-color: transparent;">
						<img alt="Conectar" src="<%=VariablesGlobales.PATH_IMAGES %>/ver_anuncio.jpg" style="height: 20px;width: 20px;"/> 
					</button>
				</td>
			</tr>
			<%if(error!=null){%>
				<tr>
					<td colspan="5" align="center">
						<font size="1" color="red">
							<%=error %>			
						</font>
					</td>
				</tr>
			<%}%>
	<%	}
	%>
	</table>		
</form>
</body>
</html>